using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TOpenCLVector a;
clMtxVec.CreateIt(
out a);
try
{
a.CopyCplxFromArray(
new double[] {1,2,3,4});
a.LogN(10.0);
// log base 10, the slow way a = [Log10(1), Log10(2),...]
}
finally
{
clMtxVec.FreeIt(
ref a);
}
}
}